package com.guochenglang.www.web.websocket;

import com.guochenglang.www.pojo.User;

/**
 * 私信对话封装
 *
 * @author GuoChenglang
 */
public class Message {
    /**
     * 对话内容
     */
    private String content;
    /**
     * 存储的键
     */
    private String username;
    /**
     * 对话人
     */
    private User user;

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Message(String content, User user, String username) {
        this.content = content;
        this.user = user;
        this.username = username;
    }

    public Message() {
    }
}
